#include <gmock/gmock.h>

#include <random>
#include <string>

std::string Hello() { return "Hello, " + std::to_string(rand()) + "!"; }

int Rand10() { return rand() % 10; }

TEST(GeneralizedAssert, Hello) {
    EXPECT_THAT(Hello(), testing::StartsWith("Hello, "));
}

TEST(GeneralizedAssert, Rand10) {
    EXPECT_THAT(Rand10(), testing::AllOf(testing::Ge(0), testing::Lt(10)));
}